package xyz.scootaloo.mono.test

import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import xyz.scootaloo.mono.base.service.async.AsyncTaskService

@SpringBootTest
class SystemTestApplicationTests {

    @Autowired lateinit var async: AsyncTaskService

    @Test
    fun contextLoads() {
    }

    @Test
    fun syncTest() {
        for (i in 0 until 10) {
            async.logging {
                println("${Thread.currentThread().name}, i=$i")
            }
        }
        for (i in 0 until 10) {
            println("${Thread.currentThread().name}, i=$i")
        }
    }

}
